﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="StockGestion.aspx.cs" MasterPageFile="~/MasterPage.master" Inherits="StockGestion" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>

<%@ Register Src="../UserControls/Fecha.ascx" TagName="Fecha" TagPrefix="uc1" %>

<asp:Content ID="Content1"  ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <div style="text-align: center;">
        <asp:ScriptManager id="ScriptManager1" runat="server"></asp:ScriptManager>
        
        <h1 style="text-align: left">
            &nbsp;&nbsp;&nbsp; Gesti&oacute;n de Articulo</h1>
            
        <table class="tablaForm" style="width: 550px" border="0">
            <tr>
                <td class="tdStock" colspan="4">
                    Gesti&oacute;n de Art&iacute;culo</td>
            </tr>
            <tr>
                <td class="tdLiteral" colspan="4" style="text-align: center">
                    <asp:Label ID="lblAccion" runat="server" CssClass="lblAccion">Acci&oacute;n</asp:Label>&nbsp;</td>
            </tr>
            <tr>
                <td class="tdLiteral" style="width: 20%; text-align: right">
                    <asp:Label ID="lblRubro" runat="server" CssClass="label" Text="Rubro:"></asp:Label></td>
                <td class="tdForm" colspan="3" style="width: 80%; text-align: left">
                    <asp:TextBox ID="txtRubro" runat="server" CssClass="cuadrotxt100" ReadOnly="True"></asp:TextBox></td>
            </tr>
            <tr>
                <td class="tdLiteral" style="width: 20%; text-align: right">
                    <asp:Label ID="lblSubRubro" runat="server" CssClass="label" Text="SubRubro:"></asp:Label></td>
                <td class="tdForm" colspan="3" style="width: 80%; text-align: left">
                    <asp:TextBox ID="txtSubRubro" runat="server" CssClass="cuadrotxt100" ReadOnly="True"></asp:TextBox></td>
            </tr>
            <tr>
                <td class="tdLiteral" style="width: 20%; text-align: right;">
                    <asp:Label ID="lblCodigo" runat="server" CssClass="label" Text="Código:"></asp:Label></td>
                <td  class="tdForm" colspan="3" style="text-align: left; width: 80%">
                    <asp:TextBox ID="txtCodigo" runat="server" CssClass="cuadrotxt" ReadOnly="True"></asp:TextBox></td>
            </tr>
            <tr>
                <td class="tdLiteral" style="width: 20%; text-align: right;">
                    <asp:Label ID="lblArtículo" runat="server" CssClass="label" Text="Artículo:"></asp:Label></td>
                <td class="tdForm" style="text-align: left;" colspan="3">
                    <asp:TextBox ID="txtArticulo" runat="server" CssClass="cuadrotxt100" MaxLength="50"></asp:TextBox></td>
            </tr>
            <tr>
                <td class="tdLiteral" style="width: 20%; text-align: right">
                    <asp:Label ID="lblCodBarra" runat="server" CssClass="label" Text="Código Barra:"></asp:Label></td>
                <td class="tdForm" colspan="3" style="text-align: left">
                    <asp:TextBox ID="txtCodBarra" runat="server" CssClass="cuadrotxt100" MaxLength="50"></asp:TextBox></td>
            </tr>
            <tr>
                <td class="tdLiteral" style="width: 20%; text-align: right">
                    <asp:Label ID="lblLargoArt" runat="server" CssClass="label" Text="Largo Art.:"></asp:Label></td>
                <td class="tdForm" colspan="3" style="text-align: left">
                    <asp:TextBox ID="txtLargoArt" runat="server" MaxLength="2" Columns="2">0</asp:TextBox>
                    <asp:Label ID="Label1" runat="server" CssClass="label" Text="Long. Artículo Cod. Barra(min 4): resto  Lote / 0 = todo Artículo sin Lote"></asp:Label></td>
            </tr>
            <tr>
                <td class="tdLiteral" style="width: 20%; text-align: right; height: 23px;">
                    <asp:Label ID="lblLote" runat="server" CssClass="label" Text="Punto de Pedido:"></asp:Label></td>
                <td class="tdForm" colspan="3" style="text-align: left; height: 23px;">
                    <asp:TextBox ID="txtPuntoPedido" runat="server" CssClass="numero" ReadOnly="True"></asp:TextBox></td>
            </tr>
            <tr>
                <td class="tdLiteral" style="width: 20%; text-align: right">
                    <asp:Label ID="lblSaldo" runat="server" CssClass="label" Text="Saldo:"></asp:Label></td>
                <td class="tdForm" colspan="3" style="text-align: left">
                    <asp:TextBox ID="txtSaldo" runat="server" CssClass="numero"></asp:TextBox></td>
            </tr>
            <tr>
                <td class="tdLiteral" style="width: 20%; text-align: right">
                    <asp:Label ID="lblPrecio" runat="server" CssClass="label" Text="Precio:"></asp:Label></td>
                <td class="tdForm" colspan="3" style="text-align: left">
                    <asp:TextBox ID="txtPrecio" runat="server" CssClass="numero"></asp:TextBox></td>
            </tr>
            <tr>
                <td class="tdLiteral" style="width: 20%; text-align: right">
                    <asp:Label ID="lvlLote" runat="server" CssClass="label" Text=" Lotes:"></asp:Label></td>
                <td class="tdForm" colspan="3" style="text-align: left">
                    <asp:CheckBox ID="chkLote" runat="server" AutoPostBack="True" OnCheckedChanged="chkLote_CheckedChanged" /></td>
            </tr>
            <tr>
                <td class="tdLiteral" style="width: 20%; text-align: right">
                    <asp:Label ID="lblAutoLote" runat="server" CssClass="label" Text=" Auto Lote:"></asp:Label></td>
                <td class="tdForm" colspan="3" style="text-align: left">
                    <asp:CheckBox ID="chkAuto" runat="server" Text="Genera Lote Nuevo al cargar una Compra" /></td>
            </tr>
            <tr>
                <td class="tdBotones" colspan="4"><asp:Button ID="btnGuardar" runat="server" CssClass="Boton" Text="Guardar" Width="75px" OnClick="btnGuardar_Click" />
                    &nbsp; &nbsp;<asp:Button ID="btnLotes" runat="server" CssClass="Boton" Text=" Lotes" Width="75px" OnClick="btnLotes_Click" />&nbsp;&nbsp;&nbsp;
                    <asp:Button ID="btnCancelar" runat="server" CssClass="Boton" Text="Cancelar" Width="75px" OnClick="btnCancelar_Click" />&nbsp;
                    </td>
            </tr>
        </table>
    </div>        
    <asp:Panel ID="pnlMensaje" runat="server" CssClass="tdBotones" Style="display: none"
        Width="233px">
        <div style="background-image: none; background-color: transparent; text-align: center">
            <asp:Label ID="lblMensaje" runat="server" Text=""></asp:Label>
            <br />
            <br />
            <asp:Button ID="btnMensaje" runat="server" Text="OK" Width="64px" />
        </div>
    </asp:Panel>
    <table id="tblMensaje" runat="server" border="0" style="width: 0px; height: 0px">
        <tr>
            <td style="width: 100px; height: 18px">
                <asp:Button ID="btnMalMensaje" runat="server" Height="0px" Text="Button" Width="0px" />
            </td>
        </tr>
    </table>
    <cc1:ModalPopupExtender ID="mpeMensaje" runat="server" BackgroundCssClass="modalBackground"
        DropShadow="true" OkControlID="btnMensaje" PopupControlID="pnlMensaje" TargetControlID="btnMalMensaje">
    </cc1:ModalPopupExtender>
</asp:Content>
    
